package com.mdd.common.mapper.cart;

import com.mdd.common.core.basics.IBaseMapper;
import com.mdd.common.entity.cart.Cart;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface CartMapper extends IBaseMapper<Cart> {

    /**
     * 购物车数量
     *
     * @param userId
     * @return
     */
    Long getCartCountByUserId(@Param("userId") Integer userId);

}

